//
//  FRBaseDataSource.h
//  Health
//
//  Created by mykoma on 14-9-7.
//  Copyright (c) 2014年 scu.edu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FRNetworking.h"

@interface LGBaseDataSource : NSObject

+(void)getAction:(NSString *)action
      parameters:(NSArray *)parameters
         success:(CompletionBlockWithDictionary)success
         failure:(CompletionBlockWithError)failure;

+(void)postAction:(NSString *)action
       parameters:(id)parameters
          success:(CompletionBlockWithObject)success
          failure:(CompletionBlockWithError)failure;

+ (void)postAction:(NSString *)action
        parameters:(id)parameters
              data:(NSData *)data
          mimeType:(NSString *)mimeType
          fileName:(NSString *)fileName
           success:(CompletionBlockWithDictionary)success
           failure:(CompletionBlockWithError)failure;

@end
